$(function() {
	//地址
	var $top = $(".top")
	var $box = $(".box")
	$top.hover(function() {
		$(this).css("background", " #fff url(images/sanjiao_03.png) no-repeat right ")
		$box.css({
			"display": "block"
		})
		var $box2 = $(".box2 li a")
		//		console.log($box2)
		$box2.hover(function() {
			$(this).css({
				"color": "#64a131",
				"text-decoration": "underline"
			})
		}, function() {
			$(this).css({
				"color": "",
				"text-decoration": "none"
			})
		})

	}, function() {
		$(this).css("background", "url(images/sanjiao_03.png) no-repeat right ")
		$box.css({
			"display": "none"
		})
	})
	var $guoyuan = $(".guoyuan")
	var $guoyuan1 = $("#guoyuan")
	$guoyuan.hover(function() {
		$guoyuan.css("background", "#fff")
		$guoyuan1.css("display", "block")

	}, function() {
		$guoyuan.css("background", "")
		$guoyuan1.css("display", "none")

	})
	//手机果园
	var $font = $(".font-1")
	var $pll = $(".p-common-topcode")

	$font.hover(function() {

		$(this).css("background", "#fff")
		$pll.css("display", "block");
	}, function() {
		$(this).css("background", "")
		$pll.css("display", "none");
	})
	//登录注册的hover效果
	var $lis = $(".zhuce a,.link-v a")
	$lis.hover(function() {
		$(this).css({
			"color": "#f6ab00",
			"text-decoration": "underline"
		})

		//console.log($(this).css("color","#55A532"))

	}, function() {
		$(this).css({
			"color": "#999",
			"text-decoration": "none"
		})

	})
	//下拉菜单的hover效果
	var $listUnstyled = $(".list-unstyled li a")
	//	var $citysel=$(".citysel")
	$listUnstyled.hover(function() {
		$(this).css({
			"background": "#f1f1f1",
			"color": "#64a131",
			"width": "100%"
		})
		$(this).children("span").children("i").css("color", "#64a131")

	}, function() {
		$(this).css({
			"background": "",
			"color": ""
		})
		$(this).children("span").children("i").css("color", "")

	})
	var $lis = $(".list-unstyled li")
	//		console.log($lis)
	$lis.click(function() {
		if($(this).children(".citysel").css("display") == "none") {
			$(this).children(".citysel").css({
				"display": "block"
			})
			$(this).children("a").children(".icon1").children("i").removeClass("icon-more").addClass("icon-moreunfold")
			$(this).children(".citysel").children("a").hover(function() {
				$(this).css({
					"background": "#fff",
					"width": "100%"
				})
			}, function() {
				$(this).css({
					"background": "#fff",
					"width": "100%"
				})

			})
			//				$(this).show()
		} else {
			$(this).children(".citysel").css({
				"display": "none"
			})
			$(this).children("a").children(".icon1").children("i").removeClass("icon-moreunfold").addClass("icon-more")
		}

	})
	//bottom 的hover效果
	var $block3=$(".block3 li a")
//	console.log($block3)
	$block3.hover(function(){
		$(this).css({"color":"#64a131","text-decoration": "underline"})
	},function(){
		$(this).css({"color":"","text-decoration": "none"})
		
	})

})